#include <stdio.h>

void jiaohuan(int *m, int *n);

int main(int argc, const char *argv[]) {
    int a = 10, b = 20;
    printf("请输入两个数：\n");
    scanf("%d%d", &a, &b);
    jiaohuan(&a, &b);
    printf("%d %d", a, b);
    return 0;
}

void jiaohuan(int *m, int *n) {
    int t;
    t = *m;
    *m = *n;
    *n = t;
}

